const {
	http
} = uni.$u

//课程列表
export const classList = (data, config = {}) => http.post('/class/list', data,config)
//课程详情
export const classById = (data) => http.get('/class/byId', data)
//新建课程
export const classAdd = (data, config = {}) => http.post('/class/add', data, config)
//编辑课程
export const classEdit = (data, config = {}) => http.post('/class/edit', data, config)

export const reservationClass = (data, config = {}) => http.post('/class/reservation', data, config)

export const cancelClass = (data, config = {}) => http.post('/class/cancel', data, config)
